<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>HelloWorld</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>Hello World!</h1>
    <hr>
    <div id="app">
       <p>原始文本信息: <u> {{message}}</u> 看这里</p>
        <h3>文本框</h3>
        <p>
            v-mode:<input type="text" v-model="message">
        </p>
        <p>
            v-mode.lazy:<input type="text" v-model.lazy="message">
        </p>
        <p>
            v-mode.number<input type="text" v-model.number="message">
        </p>
            
        <p>
            v-mode.trim<input type="text" v-model.trim="message">
        </p>
        <h3>文本域</h3>
        <textarea name="txtarea" id="" cols="30" rows="10" v-model="message">

        </textarea>

        <h3>多选框绑定单个值</h3>
        <input type="checkbox" name="chk" id="isTrue" v-model="isTrue">
        <label for="isTrue">{{isTrue}}</label>

        <hr>
        <h3>多选框绑定数组</h3>
        <p>
            <input type="checkbox" name="jspang" value="jspang" v-model="webNames">
            <label for="jspang">jspang</label>
            <input type="checkbox" name="panda" value="panda" v-model="webNames">
            <label for="Panda">Panda</label>
            <input type="checkbox" name="lala" value="lala" v-model="webNames">
            <label for="lala">lala</label>
        </p>
        <p>
            {{webNames}}
        </p>    
        
        <h3>单选框绑定</h3>
        <p>
        </p>
        <input type="radio" name="one" value="男" v-model="sex">
        <label for="one">男</label>
        <input type="radio" name="two" value="女" v-model="sex">
        <label for="two">女</label>
        <p>您选择的性别是:{{sex}}</p>
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el:'#app',
            data:{
                message:'Hello World111',
                isTrue:true,
                webNames:[

                ],
                sex:'男'
            }
        })
    </script>
</body>
</html>